
import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:hc_center/routes/routes.dart';

import 'route_state.dart';

Widget buildView(RouteState state, Dispatch dispatch, ViewService viewService) {
  return  Scaffold(
    body:Center(
      child:  Column(
        children: [
          SizedBox(height: 80,),
          InkWell(
            child: Text('地图', style: TextStyle(fontSize: 30),),
            onTap: (){
              Navigator.pushNamed(viewService.context, RoutesName.mapPage);
            },
          ),
          SizedBox(height: 20,),
          InkWell(
            child: Text('rtmp视频播放', style: TextStyle(fontSize: 30)),
            onTap: (){
              Navigator.pushNamed(viewService.context, RoutesName.rtmpPage);
            },
          )
        ],
      ),
    ),
  );
}
